import 'dart:ui';

import 'package:google_mlkit_face_detection/google_mlkit_face_detection.dart';

class DetectedFace {
  final Face? face;
  final bool wellPositioned;
  final Size? size;
  final bool isRealPerson;
  const DetectedFace({
    required this.face,
    required this.wellPositioned,
    this.size,
    required this.isRealPerson,
  });

  DetectedFace copyWith(
          {Face? face, bool? wellPositioned, bool? isRealPerson, Size? size}) =>
      DetectedFace(
        face: face ?? this.face,
        wellPositioned: wellPositioned ?? this.wellPositioned,
        size: size ?? this.size,
        isRealPerson: isRealPerson ?? this.isRealPerson,
      );
}
